package edu.hunan.cxb18.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author AuthorName
 * @create 2020-04-01 19:56
 */
@Controller
public class RuquestTestController {
    @RequestMapping("/requestParam")
    public String test(
        @RequestParam(value = "username") String username,
        @RequestParam(value = "pwd",required = false,defaultValue = "123")Integer pwd){
        System.out.println("username =" + username + "pwd=" + pwd);
        return "success";
    }

}
